class CreateGameConfigs < ActiveRecord::Migration
  def self.up
    create_table :game_configs do |t|
      t.string :name
      t.string :tag_line
      t.string :welcome_line
      t.text :description
      t.integer :max_tentatives
      t.integer :points_multiplier
      
      
      #Images
      t.string :game_image_file_name
      t.string :game_image_content_type
      t.integer :game_image_file_size
      t.datetime :game_image_file_updated_at
      
      t.string :header_image_file_name
      t.string :header_image_content_type
      t.integer :header_image_file_size
      t.datetime :header_image_file_updated_at
      
      t.string :background_image_file_name
      t.string :background_image_content_type
      t.integer :background_image_file_size
      t.datetime :background_image_file_updated_at
      
      t.timestamps
    end
  end
  
  def self.down
    drop_table :game_configs
  end
end
